Avoid race condition that can lead to a NullPointerException
Optimize code to extract the character to display in the fallback contact picture
Replace tabs with spaces