Added unit tests for registering a source root path with no targets

Testing Done:
Added a unit test requested by Patrick.   Passed CI @ https://travis-ci.org/pantsbuild/pants/builds/35208443

Bugs closed: 573

Reviewed at https://rbcommons.com/s/twitter/r/1027/