Return null instead of throwing when getContact fails
remove trailing whitespace