Fixed issue with checking "can" on empty account record

Main code rev. 1781