Flash error correctly handles nil case