VE-752: handle errors during document creation

https://wikia-inc.atlassian.net/browse/VE-568

These errors will be suppressed in-browser but tracked for monitoring purposes.