Disable NewCaseBtn if program is not defined #1248