Fixed logical error in CameraCenterTest::onExit.
Merge pull request #6216 from Dhilan007/develop

Fixed logical error in CameraCenterTest::onExit.