Fixed an issue in the adminclient bundle when security is enabled