Add null check for itemScore