An enhancement for application:get_env to provide data validation and sensible error messages.