Error out if ctx is NULL.
This code checks whether the return value of ssh_poll_get_ctx is NULL, but forgets to checks whether the return value of ssh_poll_get_default_ctx is NULL. This merge request adds a second check to make the code more robust.