Prevent a potential pattern matching crash