So strangely I ran this code today and it works just fine. Getting all the values as I would have expected. I guess someone rebooted the server for something!