The 2005 world champion Shaun Murphy survived a huge scare before reaching the second round of this year's event at the Crucible.