Fix undefined local variable 'name'

Local variable 'name' defined in 'Document#clean_conditionally' does not exists in 'Document#clean_conditionally_reason?'.