OutputView.clear() didn't check if blocks was empty

The first commit fixes the first error in #9, the second the second. This is a quick fix without understanding if the fixed code is correct, at all.