Only set a price range query if we need to.