Properly reset analysis table on script change, disable analysis tab on empty script