[BZ-1004651] report a missing dependency as a kjar compilation error
(cherry picked from commit 67df2b11d8ca448f25bd70c39055690dcb86216a)