Fixed NPE that occurs when creating a SWT gateway connection