Fixing NPE.

In case of an shutting down selendroid-standalone (using an already started emulator) this fix is fixing the NPE. The port in this case was not set by selendroid, it was set by the system or manually by the user.