Add check for messageBox.
Merge pull request #59 from fmfi-svt/Dusan/get-predmety-hotfix

Add check for messageBox to get_predmety() function.