don't crash on empty header, send back plain text and no JSON