[buildscript] fix moving to next phase on unknown phase (GNOME bug 584283)