BHV-16204: moon.ListActions optionSelected handler can behave wrong

Issue:
The optionSelected handler is checking open status then start expandContract as a job.
But, when expandContract is called we can not guarantee that open variable is still true because it has 300ms delay.
This can cause timing problem when developer call expandContract directly and that call is called between the 300ms delay.

Fix:
Check open status when expandContract is called so that there is no timing gap.

DCO-1.1-Signed-Off-By: Kunmyon Choi kunmyon.choi@lge.com
Merge pull request #1724 from enyojs/BHV-16204-kunmyonchoi

BHV-16204: moon.ListActions optionSelected handler can behave wrong

Reviewed-By: Krishna Rangarajan (krishna.rangarajan@lge.com)
Integrated-By: Cole Davis (cole.davis@lge.com)