Check for valid return value from regcomp.