Fixed crasher when “expr” was NULL due to no characters following the terminating "--".