Serial formating of empty serials

Correctly pass through empty serials as empty, so they can later be
ignored.