Add missing endif in crystallography mako template

(cherry picked from commit 7dbea40f84c14a69b0cacca847996780746c8aa8)