beter handle "nil"

added comment for Addon#unregistered