bitbake: knotty: Move second event check into a proper block