Fix bug #4 that wasn't checking for the device secret before publishing on a device topic