Create a FaradayMiddleware to check the response body for a 'null' response which teamcity returns for empty collections for json responses and instead set the body to an empty json object
Add some tests for handling when there are no projects or buildtypes for a project