common: Make serialization framework support empty packets

Change-Id: Ie591f1fe3c2a1cf79de1fe99f31da5edd1c557d4