Switched to use nullHandle only if 2.7 and above.