Don't emit empty errors

Fixes #123.