Fixed crash when no default handler specified.

Fixed the arduino crashing due to null pointer when the optional default
handler had not been specified.  Fixed missing ack parameter check when
returning NACK.