Fixed bug with missing check for null account.