MDL-16982 Administration: Moved bulk action outside forloop