Fixed issue when diagnostic snapshot button becomes active while dump task still running

Change-Id: I1bfa0b9b7d2f43c91eb94fb0bd0350cad07254fd