[PATCH 1/1] advpack: Add nullcheck for parameter that can be null (Coverity)