Fix image stack import.

In #761, the signal for addStack was changed to have signature
pyqtSignal(int), where the parameter indicates the lane number for the
new stack. New lanes are encoded with -1 instead of None.

This patch adjusts the addStack() function to handle laneIndex == -1 to
indicate a new lane.