Only format when args are specified to allow emitting format strings.

Prior to this change attempting to emit a format string in code would cause an exception due to a lack of arguments with which to apply the format.