Fix for issue where DefectPanel GUI could break when adding comments or making changes to defects.