Fix homeonly check on static home page
