Have you tested with 7.2.14?
I just tested 7.1.26 and it works. When I change it back to 7.2.14 it stops working.
I have the latest template version and module version.
I added your code and it still doesn't work with 7.2.14.
I have it working now with 7.1.26. I just wanted to know if you had tested with 7.2.14