fix resending invitation on devise 3.1, fixes #375