Fixed possible crash when opening a subtitle