Fix exception when running yiic commands

This fixes an `Undefined index: REMOTE_ADDR` exception thrown when running yiic commands with the smartmaps plugin installed.