Fix NullRef when starting/stopping HttpListener