fix double home page bug

When doing a duplicate page, if we do that on a homepage, we end up having two homepages, which in result breaks the site until we edit required homepage and save it as 'is_home' once again.