Validate the device token length. Otherwise the frame can be sent with an incorrect length.