Check home is null
Merge pull request #1402 from mattn/check_home_is_null

Check home is null