BZ-1006906, BZ-1006912, BZ-1006917, BZ-1003005: fix for all those issue as all of them were related.
additionally, in order to improve error messages, a small refactoring in ErrorPopup widget.