Avoiding memory allocation when no memory frame is active throwing exceptions, fixing bug in minifiers [ci skip]