Only append generator tag on HTML pages Closes #5113
Pass args through for deprecated function Closes #5087