#1297098 - Change checking of $_GET['q'] in the path check function to use !empty() rather than isset()