Fix #13993. Save result of native inline handlers. Close gh-1368.
(cherry picked from commit 3bcd04f528597dac0a7084865461574ab4a06465)