[BZ-1009369] fix incremental compilation when an empty resource is added