#1048: add setDefaultCollisionHandler of cp.Space in JSB

#1048
We prefer to use nullptr instead of NULL whenever possible, if we don't compare these values with int