Test if the "page" and "post" query parameters exist before using them.