Fix possible freeze if opcode.txt file does not exist on .debug send opcode

I am no ifstream expert but I think handling it like this looks more safe.

Originally inspired by https://github.com/TrinityCore/TrinityCore/commit/35ef163703164a8190473ee8eb2ece32a9565045