xkbcomp: add null checkers after calloc()