Bug 931719 - [HW test] unlock button in orientation test test doesn't work

Modified codes to switch-case so that js would not complain for missing buttons
Merge pull request #13279 from MBRSL/bug-931719-orientation

Bug 931719 - [HW test] unlock button in orientation test test doesn't work, r=gasolin