fix wrong untag when using rmi via id
add regression test
Merge pull request #1306 from dotcloud/1294_fix_wrong_untag_using_id_rmi

Fix wrong untag using id rmi