Prevents otto Could not dispatch event: EventHandler null when trying to dismiss DialogFragment