Again this is the same for RegexFunction. 
https://github.com/mulesoft/mule/blob/mule-3.x/core/src/main/java/org/mule/el/function/RegexExpressionLanguageFuntion.java#L69

This is not wrong in none of the cases, an empty pattern it's an unlikely scenario but still very valid.