Minor bugfix to avoid errors with null values during preprocessing