that is correct. I havent gotten any further errors since uploading the package you posted.
Update: I added the updated version you have posted here, and it is working.
Im running PHP version 5.6.28
I also found the issue when trying to update a users password.