Welcome @eliasrudberg !
Absolutely.
This is not a bug in Django. This would be functioning in the manner that Django is designed and documented at The Django template language | Django documentation | Django.
The error here is trying to use a reference in a template without having the view ensure that the context being passed is correct.
Both the template and the view should be corrected here. The view should ensure the right data is put into the context, probably under a different name, and the template should render that data from that name.