Checking for nil queue before adding operations