Use key().id_or_name() instead of key().name()
These two cases were introduced after the previous refactoring was
done and did not follow the new behavior.
Patch by: Sverre Rabbelier
A list of bugs is available in the Google App Engine SDK project on Google Code.
The issue tracker is at http://code.google.com/p/googleappengine/issues/.