Returns the title of the given character if it's a player, otherwise returns null (since mobs don't have titles).