Bug 995988: can_edit_product() can throw warnings if SUM() returns NULL
r=LpSolit a=justdave