Scale app in /tasks/kill only if `scale` is true

The `scale` URL parameter was added to decide whether to scale the app,
but the variable was never referenced. This wraps app scaling so it is
only performed if `scale` is true.