Fix NPE in ProductResource