I've sent a patch to guix-patches@gnu.org that should fix this. This is my first commit to the project, so please let me know if I've made any mistakes.