Revert "reverted 3a3fec3cb6bb4f9a008370ea02279d286654b01a because it fails a unit test"

This reverts commit f4ee1a8115cd927ce15feb9af60b18d108dcd6e7.
CLOUDSTACK-5466:Fixed freeing ip address in removeIpFromNic