bugfixes in async js controll flow and Event to_dickt() if None