Fix null query string bug in relay