Added null check to start the server successfully!

in reality it shouldn't even reach this part in future if it's going to
be null