mantis 17186 - PHP notice about undefined index

Ensure that variable exists