This part of code is from the old library. In GLFW3 w == 0 and h == 0 is not valid width/height. So I think too that this should return non valid window.