Updated the buglink strategy generation to use the new mechanism.
Fixed an NPE that was caused by using the wrong variable.