Why did Madara have Rinnegan before activating it and nobody noticed?
Yes, it was a mistake (and yes, I noticed it before you did, ask the regulars at chat =P), nice job spotting it!

In the manga, that specific scene doesn't exist (the part where he looks up at the Rasengan), so apparently the animators or the editors simply made him with the Rinnegan for some reason.