[BZ-1066059] avoid NPE in incremental compilation when try to rebuild a kbase never compiled before