made sure class is always initialized by checking so in the onfisishedin...

Hi,

I opened an issue about the observer being null. I solved it in this fork and was hoping you guys could check it. Please let me know if there is a better way to solve the problem.

Youp