Virtualization confusion

The virtualization plugin doesn't seem to work on executables build on dotnet
v4 and newer (all lower framework versions work ok).
After some debugging a NullReferenceException is thrown in VmRuntime.VmExecuter.ExecuteCore.
I've tried fixing the code on my own, but failed miserably.