fix a bug causing an exception for certain link references (see http://meta.stackoverflow.com/q/64655)
fix a bug causing an exception for certain link references (see http://meta.stackoverflow.com/q/64655)

mrrohitkaushal/wmd-new,mrrohitkaushal/wmd-new,mrrohitkaushal/wmd-new