use swtch_to.parent_frame if available
Merge pull request #1401 from jnicklas/parent_frame

use swtch_to.parent_frame if available in selenium