Patch for handling module version tag on Moodle 2.6
Fixed a warning message showing up on Moodle 2.6