Revert "Apply a patch to try to fix a bug in ComputeStackSize that is affecting us"

This reverts commit 6e0ae07359d87ad03a5e13110bdb7429aaffd295.
Introduce a safety check so if .Replace is used without fixing the rest of the method, it warns/crashes.