On the heavy-quark content of the nucleon