Fixed possible exception in update check
Fix