Fix attr access for empty arrays

Note: this will crash until https://github.com/ContinuumIO/libdynd/pull/89 is merged
cool will do. is that return value ok, really just a placeholder until you go to reviewing it