Only open the quickfix window if there are valid errors

Without this, the quickfix window might get openend even if there are no
actual errors, e.g because of the output generated by Makefiles
created by CMake.