Ignore bogus links

This pull request fixes issue #907 for all link extractors.
Test cases included.