Don't save buffer if it's not open. We should only save on save events.