compdb: check that inputs is not empty

Ignore rules without inputs when using the `compdb` tool.