Fix bug reporting errors on empty input