bugfix on presence_callback for none type