Changes to accommodate ErlyDTL compilation crash

Related to https://github.com/erlydtl/erlydtl/issues/126