Added check for the existence of extension info and a comment for readability.

Added test for missing extension information
Merge pull request #147 from thanosp/fix-missing-extension-notice

Added check for the existence of extension info