Qt54: fixed an issue with getting a warning about having to instantiate the QApplication object first (closes #517).

The issue was with OpenCOR::removeGlobalInstances() being called after
destroying guiApp. Yet, OpenCOR::removeGlobalInstances() is the first
method we call in main() and everything’s fine there…?!