GF-53448 Added check for control

getPanelIndex() in Panel.js giving error when the panel object is not valid.

Enyo-DCO-1.1-Signed-off-by: Anish Ramesan anish.ramesan@lge.com