I'm trying to make an external data group a little more bulletproof and ensure that if a key gets uploaded without a value that the below iRule doesn't attempt to redirect. What is happening however ...
Are you seeing any TCL errors? If you don't have a value in your datagroup, I'd expect you to get an error saying "no such variable - REDIR_LOC" or something like that.