You don't need to create a thumbnail in that case, but you're calling createThumbnail unconditionally below, so it looks to me as if you are always calling createThumbnail() even when there is an activity.  I would have expected you to move the if (!self.activity.active) test so that it was around the call to createThumbnail.