cylc gui: fix handling of invalid regexes for filters

This makes sure that a user-defined invalid filter regex does not cause
thread-fatal exceptions or launch a recurring popup.

@hjoliver, please review.