Fixed #4456: Use undefined check in cc.loader and fix comment errors