account for indexmap name being '', closes #50

Such an instance means that the length of the index maps is not zero, so
we should not iterate through such a list.  Look at the length of the
index arrays instead.
merge branch 'issue50' into devel