Require a valid con before calling terminate

If get_connection returns null, e.g., if during stop the tls_init
handler is removed from the server, con->terminate will cause a crash.
Merge remote-tracking branch 'upstream/master'

Conflicts:
	websocketpp/roles/server_endpoint.hpp
Merge pull request #335 from aydany/master

Require a valid con before calling terminate