machine: Ensure thumbnail update in properties sidebar

Only update thumbnail for current item and ensure thumbnail gets updated
when going to properties view.
machine: Correct thumbnail for under construction box

In commit 2526a28, we lost the code to use 'media-optical' icon as
thumbnail for an under construction box. This patch brings back the
(unintentionally) removed code.