Demean the series or not

First of all (as always): do not use the two-sided HP filter for estimating DSGE models. See Pfeifer (2013): “A Guide to Specifying Observation Equations for the Estimation of DSGE Models". If you must, use the one-sided HP filter
Depending on the filter you use, your data will be mean 0 (true for the one-sided and two-sided HP filter). Prefiltering in this case is not needed, because the empirical mean you subtract will be 0. Thus prefilter=1 will be harmless, but useless.