Set an exception when data argument is a zero length array