Fixed crasher in macros.py.

Leo build: 20141203153040