Added fix for Admin Links hook when using SMW 1.9+

Change-Id: If6b24df103b376f1368598686f1606574c0b20a7