But even so, if that call doesn’t exist, shouldn’t it be removed from the theme file?
….ah, I think I get it, the 404 page is being called directly, and the includes that would define get_header are not there because it’s not being called through WP? If that’s the case, would it make sense to check for that?
Or in the sense of security go one step further, and throw up an error page since the page isn’t being called as designed? Might mitigate some (potential, future, …) attack vectors?