iOS advertisement data and minor bug fix

Added untested support for advertisement data in the scan callback for
iOS
Also fixed a bug that occurred when the device name was null