protect against non-string (null undefined) regex failures

Enyo-DCO-1.1-Signed-Off-By: Cole Davis (cole.davis@lge.com)