Fix: UnboundLocalError: local variable 'finalurl' referenced before assignment

See
http://forum.xbmc.org/showthread.php?tid=166099&pid=1516767#pid1516767