Fixes bug causing a fatal error related to rendering links.
Merge pull request #1 from smurrayatwork/references_dialog_fix

Fixes bug causing a fatal error related to rendering links.