Update DebugWidget.php

Get error if $value is object