Corrects the condition on when a request to a page containing a test collection shortcode is valid