[Reviewer: Andy] Check whether a homestead is attached

Andy, can you please review this fix to stop sprout crashing if there's no homestead attached
Fixes #154