Fix handling of unimportant events in Formatting

We cannot return an empty string, as it leads to unwanted newlines in
the output. The guarding logic is also moved out of format_event, as
the responsibility to handle this is better placed inside of
format_comments_and_events.