Rihanna made another surprise appearance in court to stand by her boyfriend A$AP Rocky as he faces up to 24 years in prison.