Fix 500 when someone goes to /photos/search_data