Fixed the returning of empty values when the returned type is a structure.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>