Bug 1029037 - [B2G][Bluetooth]Screen transitioning while reciving a pairrequest will not close the pairing dialog normally.

Please also add a test for this case.