[CB-2806] Fix plugin loading when XHR doesn't return valid JSON

Take two!