Fix for issue #618: Exception in ProgramMenuActivity after crash in ScriptActivity or one of its fragments is prevented