fixing Android crash in Bonjour.addEventListener