Added a missing check if an Opus file is open