Fix 'No type in binding context for: <some class> from light class generation' exception

 #KT-4668 Fixed