fixed possible crash with NewUpdateMessage (some null exception)