Don't parse perfdata if enable_perfdata is false

fixes #7032