Fix `EntityRef::associations()`.
This was crashing when no associations were present
because it was dereferencing the end()
iterator.
Don't do that.
This was crashing when no associations were present
because it was dereferencing the end()
iterator.
Don't do that.