Bugfix: Protect string-match against nil string.