Fixed bug with undefined query strings.