Merge pull request #4975 from cfaulkner/fix_ci_prepare_view_vars

Fix an Undefined variable: object error in CI_Loader