core: fix "typo" in m_rsc:name_to_id/1.

Introduced by @kaos in commit ac52372f7a54034a993fa6dbf02bf95d09352f8a.
Relates to issue #695.