compdb: check that inputs is not empty
Merge pull request #758 from mathstuf/dev/fix-compdb-abort

compdb: check that inputs is not empty