Fixes for jailpay command

Handle negative pay amount
Take items when pay with raw materials