MOODLE2: Added conditions to get message notifier optional if file or function does not exists