apps/app_queue: Prevent possible crash when evaluating queue penalty rules