Fix for handler if deskshell object is not available.