Live CSS: Handle updates more gracefully when the cursor is in a CSS editor or a <style> tag

We prevent incorrect data from being returned by ensuring that updates
are not done while the preview panel is being refreshed. We also only
update data after the event loop has run for some time after a refresh.