BUG: If there is no data, the extents array is NULL which causes a segfault.

Change-Id: I1e7e34f7ea0e86033c75057ce73bc62e4b6f122e
Merge topic 'h5part-15215' into next

af7242ce BUG: If there is no data, the extents array is NULL which causes a segfault.