this fixes the crashes, but leaves the "else" part of ES_READCONTENT temporarily broken until the next commit. WAD access that are performed on the encrypted WAD will most likely fail with this commit.