emberjs/data — pull request #611 by juggy (2013-01-09 19:56:08+00:00)
Title: belongsTo relationship should return null when the id is null.

__Problem__
id typeof "object" is true when id is null which leads to an exception.

__Solution__
Check if the id is null before the typeof check.