Validate the device token length.

If a token is provided with the wrong length, it will cause the an invalid frame to be sent on the wire since the device token frame length is fixed to 32 bytes. It's better to catch the error early instead of transmitting something invalid to the APNS server.