Fixed a crash when user would submit empty values.