winpr: check added if handle is NULL
Merge pull request #1294 from bmiklautz/null_handle

winpr: check added if handle is NULL