Look closely at the cts:element-range-query
XML. It has no cts:value
element. So the cts:query XML is invalid. That could happen if you built the cts:query XML automatically, and never validated it.
MarkLogic 7 may be stricter about this than MarkLogic 5 was, but with either version the XML does not represent a valid query.