SPF: Catch any regexp errors, fixes one part of #666