Null check for byte array in constructor with Stream support