Check for empty arrays before saving.

Will produce a speciffic exception, ass opposed to a cryptic error from
h5py.