Added more protection around getDesktop calls.  First test Desktop.isDesktopSupported() and fail fast.