Master branch contains fix for Reports after products have been deleted. See this issue: magento/magento2#8724
withUserRolesFix branch contains both fix for report and a fix for user roles if some extension did not specify the "Title" attribute in their acl.