fixed null pointer error

When trying to clean up after a browser exit/change then wcgService could be null and cause error.  Now checking