Fix failing tests when WAGTAILSEARCH_BACKENDS not filled out

The tests attempted to skip themselves when WAGTAILSEARCH_BACKENDS was not filled out, but the skip code was throwing an error, causing the test to fail.