Fix small NullPointerException bug due to presence setting when disconnected