Build 21: Correctly handle true/false mapping in setDocument()