Altered updateItemLocationsOnInsert trigger

Changed it to update last item even if it's end date is not null.