Do not try to write KotlinPackage annotation if package class is not generated