CON-2061 fix PHP notices about undefined index