Fixed error when an object's customer had been deleted.