fix handling of uppercase NULL from ssms