If link to add to alignment exists, return it

This is causing null pointer exceptions if a user changes internal
links multiple times.