Fix for treamtent factor that have "empty" value

Reviewer: Tiff Go (post commit)

Issue: none