Filter out references that are None.

This may happen when the reference_catalog has links from a source to
a no longer existing target.