replace throw with error message.

using throw will result in an non working Joomla site. 
using the error message people will still be able to use Joomla and change the config.