[BZ-1100187] avoid to prevent the kproject compilation when a class cannot be loaded
(cherry picked from commit 9e42c09bfae185e5a1ef211d496d7d2396ea7fb0)