NEMO-2150 add explicit check for nil variant and return false for inventory tracking

Conflicts:
	core/app/models/spree/stock_item.rb
	core/spec/models/spree/stock_item_spec.rb