Fix autoretry when function is missing dunder props

Fixes #392
Merge pull request #393 from johtso/issue-392

Fix autoretry when function is missing dunder props