Fix #13993. Save result of native inline handlers. Close gh-1368.
Fix some code style inconsistencies