Fixed an expression to check output in case of no errors. Fixes #10