fix JS errors in case config when it references an unknown case type

fixes http://manage.dimagi.com/default.asp?68077