Fixed null pointer error if no server and GUI issue in send route
Fixed null pointer error if no server and GUI issue in send route