fix remote api action not sending query params and fix syndication widgets not getting all products

minor syntax nitpick: add whitespace between `if` and `(`.