Correctly handle empty page parameter and get certain variables from query for OpenSearch.