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