Fix problem with wrong using Result::toHtml() and another minor fixes

Authored by sirgienko on Apr 3 2019, 9:38 PM.