TISTUD-5294 Exception in Studio Console related to loading the Ruble
  - if document is nil, assume "\n" for newline character