Fixed crash when location/heading listener collections were mutated while an event was being dispatched