Contacts: Remove some debug statements and make an argument check in function.