In Regex test() the input can now be nil.