Prevent KeyError when popping 'tastypie_api_module' from context