Protect getHandlers and getReceivers from null values.