I know that this was tying robots to django cms, but this was initially here since the there was a problem with sites that had many root pages. Basically, for each root page a query was done to check if it's the homepage or not. From what I see the issue that we fixed, with the code you removed, will reappear.