Dismiss Notices

When WP_DEBUG is set to true, there are several warnings for unset variable that litter the display.  This patch removes references to  undefined `$sentence` variables and uses an `isset()` check on query variables before trying to use them.