Fixed EZP-22921: eZPublish installation shows undefined variable in error.log

Fixed ini reading functions, and ensure that the Extensions not set case is handled.
Improved commit according to feedback about is_array()

https://jira.ez.no/browse/EZP-22921