Fix NoneType error in URLs plugin