Guarding the InvokeEvent call in open() in protocols.py
A bug was discovered when trying to start pvw-visualizer.py while loading a file. The method responsible for opening the file was trying to call getApplication() before the paraview application was ready. A guard was added to that call to insure that the application exists before making the call.