Minor - avoid fatal error if object is not defined.
Merge branch '1.9.x' of github.com:beeznest/chamilo-lms-icpna into 1.9.x