added a check in python/GafferUI/GLWidget.py to stop __retrieveSharingWidget throwing an exception in certain circumstances