Updated to remove all_devices in favour of device_tokens

If device_tokens is None then get all device tokens.
Make sure device_tokens is actually None not []