TISTUD-5294 Exception in Studio Console related to loading the Ruble
  - if document is nil, assume "\n" for newline character
Fix TISTUD-5866 Line/block comment keyboard shortcuts not working
Merge branch 'master' into stable