Finally fixed. Detecting a deobfuscated environment was the cause,
replaced with a more appropriate solution.