Fixed a bug with masked input that caused a Javascript error.