refs #1032 - Don't use a regexp search for string search in resourceExists

This fixes the issue described in #1032.