fix bug where custom fallback search engines would be created with an undefined database