Fixes bug when reopening cronjob log error message

They could only be opened once and when reopening them, nothing happened since the DOM element had been removed.