fix Issue 11780 - RangeError in format for incomplete format specifier
Merge pull request #1792 from monarchdodra/11780

Fix Issue 11780 - RangeError in format for incomplete format specifier