Changed Record.query to rescue ResolvErrors and return nil.