Modify first argument for Grape::Endpoint.new to fix error caused by calling a method on nil.