Fixed issue where Array is not initialised.

Fixed bug in sock_array_from_fd_set() where Array is not initialised.

Resolves a number of failed test cases in React framework where "invalid argument supplied for foreach()".