BIT-280 500 Internal Server Error when Repay Principal button is selected


Signed-off-by: Yasen Yankov <iasen.iankov@gmail.com>