Fix adding members to a group

Somehow data string equal to '<div class="modal hide">...</div>
<script>...</script>' is not appended correctly to '<div
id="modal_wrapper">...</div>', but works fine if <script> node is
placed into '<div class="modal hide">...</div>'.

Change-Id: I0f4ecca740e86f9e328843ba39b2bc1b5ce35565
Closes-Bug: #1338522
Merge "Fix adding members to a group"