Prevent error when force updating an unmounted component