Fix Log Formatter getTypeString EMERGENCY bug

This fixes a bug that prevents the EMERGENCY log type being displayed correctly.
Merge pull request #1490 from SamHennessy/patch-2

Fix Log Formatter getTypeString EMERGENCY bug