[SERIAL] Adding check for input message size != 0