Not returning NotFound on empty directory name values.

This is a regression in behavior which broke an MVC test.