Add method to check if stream is OK
Also return early from createStream if allocations for return structs fail
This makes it easier to ensure that all heap allocations involved in the stream creation succeeded. Because it's required to be physically contiguous, the CPU buffer is the most likely allocation to fail, but all should be checked for success either here or in gpumathsgo.