Fix error when notes field is empty