fixed #3185
fixed #3185 replace NULL to nullptr.
fixed #3185  ComponentTest and SceneTest NULL to nullptr.
fixed #3185 support for html5.
Merge pull request #4244 from chengstory/#3185

[ci skip]fixed #3185