Fixed NPE when deleting contest phase