fixed router to always set at least an empty array for extraParams and basephpapp to check for variable existence before using it