[fix] added null check
Merge pull request #61 from davidmoebius/add_null_check_to_add_extension

[fix] added null check