Properly handle errors during reading of configuration, and suppress PHP notices.