SIO-1164 Fix bug in deleting submissions

Change-Id: Iea72ec399fab4fb084764cc8d5e3bfed98c83570