Fix deprecation warning.

Fixes warning `WARNING: (zero{T})(::Type{Ptr{T}}) is deprecated, use (Ptr{T})(0) instead.`

Also see https://github.com/JuliaLang/julia/pull/9121