Prevent breakage when moved to header by w3 total cache Closes #3412.