Fix firmware autoupdate condition check (issue #3627)