Fix update error when restws is disabled

#1763 

Fixes os update errors on 7005