Fix PDF crash, refactor theme change listener into a single function
Fix PDF crash, refactor theme change listener into a single function

mozilla/brackets,mozilla/brackets,humphd/brackets,nucliweb/brackets,humphd/brackets,humphd/brackets,mozilla/brackets,mozilla/brackets,humphd/brackets,nucliweb/brackets,nucliweb/brackets,nucliweb/brackets,humphd/brackets,mozilla/brackets,nucliweb/brackets