Fixes #4582: correct condition for last_successful_inputs_update timesta...

...mp update