Fixing code in dynamic mojit dispatching example, using the suggestion in issue #1273.
Merge pull request #1303 from zhouyaoji/docs_dyn_creating_mojits_fix

[doc] Fixing code in dynamic mojit dispatching example: see issue #1273