Fixed ugly error printing when pyqtgraph is not installed

This fixes the fact that the pretty error message is not displayed if pyqtgraph is not present in the user's system