Catch PatternSyntaxException and add null checks

Adds null checks to pre- and suffixes and catches
PatternSyntaxExceptions at IRCCommandSender