Fix legacy providers

This PR fixes various issues with legacy content/block providers including:
* Notice when doing using `ez_content:viewContent` (`objectParameters` is only set when rendering XMLText)
* Errors with `eZTemplate::elementValue()` filling the log for nothing as passed params where invalid.

Should be merged in 5.1 IMHO.