SERVER-11723 a much better fix for compactPreservePadding.js