GM_getResourceText throws unexpected and unhelpful error on missing resource name

Ad https://github.com/greasemonkey/greasemonkey/issues/1796