Fix crash due to use of dynamic attention data without checking if available