This fixes a bad data output when prereq prerequireds break

Fix #15463 Fix #15331
@jacksontj please try this one out