fallback on synchronize_by_ip if no remote_state_sip_username

Ticket #5142.
Merge branch '5142-cant-sync-after-plugin-update'
fix indentation