MID-2068 fix. Fixed few NPEs when handling with assignments + improved showing errors in assignments in GUI.