Make listCookbooksInEnvironment return empty set of CookbookDefinition o...

...n 404.

Added tests to validate above. Also factored out some duplicate code in test.