Allow category entity ids to be used instead of paths while importing products

Added if loop to allow using category entity ids instead of paths to set categories while importing products using nested arrays