This is ultimately set in the low-level domain "com.apple.launchservices". So although the article warns against deleting Safari or Mail, it is possible to use the command-line "defaults" program to fix this setting at any time.
Also note that the domain holds all URL handlers, allowing you to set up ones that may be less common, such as ssh, sftp, telnet or news.