Fix NullPointerException in Calendar constructor

The test_nulllocale checked three different cases so I split
it into three separate tests. They all failed in the same way
so I fixed them in the common place. Although the tests had a
TODO to add a targetSdkVersion check I did not do that.

Bug: 26022884
Change-Id: Icab2b4c834609a0b0f84f5f86570067019688611
2 files changed