Fix deprecated and undefined index in refererkeyword plugin