Don't reset the indexing map's rank for known empty maps.
Don't reset the indexing map's rank for known empty maps.

A known empty map with rank 0 is different from a known
empty map with rank N. 

This fixes bitcast_convert_test_gpu and probably some others.
