Refs #4878 Fix error addPrePiwik2DataIfMissing not defined