Egypt should not be written off as a failed democracy before its leader has even had a chance to govern.