Fix non-showing error message when edit file via web
Fix creating new file via web editor

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>