I am not the author of this addon.
I am just simply uploading the working version, for 5.0.4, found here;
All kudos for this great addon goes to the original author AnduinLothar. Thanks to Kui and Miliart for keeping it alive.
if target == "" then
if target == "" or not target then