Fix attr access for empty arrays

Note: this will crash until https://github.com/ContinuumIO/libdynd/pull/89 is merged