animation: fix set_frame_clock() logic

Check if frame_clock has a different value than the current one and
only then set it.
command-bar-item: remove redundant if

g_clear_object() already checks for NULL