protect against non-string (null undefined) regex failures

Enyo-DCO-1.1-Signed-Off-By: Cole Davis (cole.davis@lge.com)
Merge pull request #684 from enyojs/image-src-fix

protect against non-string (null undefined) regex failures