Only call onopen after we the connection has actually been opened (#12492)

Firefox likes to do readystatechange events (0->2) when reconnecting fails but these
attempts have status==0 (as opposed to 200) and should not trigger onopen.

Related to Atmosphere issue #15

Change-Id: I5dcb72f059b680f65825bba1772be3c32bab54db