To reproduce this issue follow the steps(with debugging turned on) -
1. Download the ADL SCORM Test packages CM-02a or CM-02b or CM-03a. You can download them from here - https://github.com/mayankgupta/moodle_scorm_test_harness/tree/master/ADL2004/LMSTestCourseZipPackages
2. Add these SCORM package as activity inside a course.
3. Fill in the instructions and save
4. Check to make sure no debugging messages appear as mention in the description of this issue.
NOTE: Many other errors are reported by this test package - this patch only addresses the issues mentioned.