Fixed a bug where operations are performed on an undefined queryResult
Style