Fix bug with delete function where stack trace occurred when attempting to delete a snippet that didn't exist