-- CRM-12410 Minor QA fix

Removed unwanted "if" condition as per changes in PR https://github.com/civicrm/civicrm-core/pull/526/files related to this issue. The variable $sql and queries were removed in this PR and while ($activityContact->fetch()) was used as a condition to delete the activities.