Fix use of uninitialized serialno

Also do not crash if OPE_GET_SERIALNO_REQUEST is used after draining.
1 job for master in 42 seconds (queued for 47 seconds)
latest
Status Job ID Name Coverage
  Build
passed #11163
docker
autoconf

00:00:42