Prevent error message when formatting an empty file.

This fixes llvm.org/PR16514.