Police are investigating after a court appearance by two men accused of the murder of Karen Cummings was filmed and widely shared online.