Fix product_by_location with stock_skip_warehouse and no product_ids

issue3843
review5171002
(grafted from f2f79e388f07fede7be1273ad1e64477a78eaadf)

--HG--
branch : 2.2
extra : source : f2f79e388f07fede7be1273ad1e64477a78eaadf
extra : amend_source : c44e317175a3c980f2bb9fbcfc1358e598b4808a
Prepare release 2.2.10

--HG--
branch : 2.2
Added tag 2.2.10 for changeset 0f6c56e600d6

--HG--
branch : 2.2
Increase version number

--HG--
branch : 2.2