beatrix: fix ClassCastException

Reported-by: Nitin Singh <nsiitk@gmail.com>
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Merge branch 'junction-bug-fixes' of github.com:killbill/killbill into junction-bug-fixes