Fix NPE on AppEngine test