Apparently an empty NSData can return NULL for its buffer, so let's not pass that unconditionally to strtoul.