fix php notices for certain process children

When a child is neither a page with the `admin` template nor has a `process` assigned the `$class` variable was not defined although accessed later in ever at all cases, this fixes that.