Update formatter.py

Should only be applied on empty response