Added null checks when creating dictionary to send to iBeacon