[Philip] Fix two bugs where we were trying to get query params from params obj