Test for window registration before calling it

The window registration method only exists in a particular environment.
Now starting an application will test if the method exists before
attempting to call it.