Update query_parser to use Record.is_record?

Change-Id: I8d544d07f4d850368ec58c93321f3d4cbe30fdfb