Use key_name instead of link_id
Some entities do not have a link_id, but all entities are guaranteed
to have a key_name (or an id).
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/.