plugins/resman: Fix null check.