Fix 500 if projection parameter isn't a dict