I think here you could use !$GetParam{ArticleTypeID} instead. This will not cause a log error if the value is not defined.