Debug plugin system and empty object

Add a default value when the JArrayHelper::fromObject does not return a valid data.
The object might not have the __toString function so in some case there was a fatal error.