Added null check on toBeAssignedTo and returns true if it is null. By looking at the
code it looks like it should return false in this case, but I did two tests, one
returning false, and one returning true. When false was returned I got many totally
incorrect errors. When true was returned I got two very correct errors. Thereby I
went with true as the value to return in this case. And YES, toBeAssignedTo is
sometimes null! That might be a bug in itself, but this fix seems to work.