avcodec/nvdec: Fix capability check with old drivers.