Added Exception handling: InvalidArgumentException

I discovered that the Z-Ray was not handling the exceptions that ArrayUtils::iteratorToArray($data) throws properly, so I added a try-catch statement.