This was fixed in 7.1. It's caused by the use of $this->page->set_message(). That function is intended for setting an error message on a redirect and should very rarely be needed or used. It's handy for things like the login page and other unusual redirect cases.