Removed duplication functionality from addChildAt method.

There is the same functionality in addChildAt methods. Also, it prevents additional removeChild call on addChild