check against bad data
Found actual issue, Revert "fixing crash if using explicit links under some conditions"

This reverts commit 7b1b99831a7a7f7c606ed6efe49e72243b0582a1.