Response from support:

Hello,

Thanks fort the script! This was indeed a bug caused by a negative Pip result and a positive $ result. This will be fixed in the next-but-one update.