#95 fixed missing default license state for new personal license request. Code format and improve.
#95 fixed NPE when attachment is null.