Solved it. For some reason, you can’t use the wp_head action. This is very unintuitive. You would think that since you include external scripts via <script> tags in the head, you would use the wp_head action.
I changed:
add_action('wp_head', 'add_header_scripts');
To:
add_action('init', 'add_header_scripts');