Fix bug in constructor generation when the class extends of abstract classes

Change-Id: I229aaad8c2f7fc11654811256765c99b85ffe4a1