Improvements to wp-config error handling