createImageBuild returns an error when build is not existing and buildinfo is not a dict Fixes: https://pagure.io/koji/issue/1106