Use null object pattern to simplify logic related to no dependency manager being set.

Fixes bug introduced in 4241eff related to dependency_manager being None if tool_dependency_dir is not set.