A Wigan woman accused of impersonating a nurse at the town's hospital has walked free after the case against her collapsed.