Make pad() not barf on `undefined`.