Fix of $YangModuleInfoImpl for ext. yang models

Fixed bug in writeJavaSource method in CodeGeneratorImpl. If package does not exist the dir structure is created.
Without this fix yang models containing only extension definitions could not be generated.

Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>