Fix Live CSS with an iframe element

For #7935 and #7785 

Bugs to fix:
- [x] Only updating the iframe if the same CSS file is used for both iframe and page
- [ ] Changes to the iframe's HTML will only take effect on save (maybe FOL)
- [ ] Error message on startup (in console)
I am not sure if that error is related to this code, but I still think this potential exception should be prevented.