Rihanna stalker goes to court