Well, it does work with "нуль доларів", but I guess it's a coincidence, should be just because it's "тисяча доларів", kind of ends in "thousand" as grey236 said :)
Shouldn't it be "два", instead of "дві", though? I thought "dollars" was masculine, and "hryvnias" would require the opposite, because it was feminine?