Fixed BuildSelection UnitTest.
Fixed bug#5307 - Tickets can be raised against an invalid Customer Company.