[TIMOB-14978] Fixed bug with state being checked after generated java files were deleted.