throw an exception when server doesn't give us list of mechanisms (otherwise we get a fatal error)
Merge pull request #1 from priyadi/master

throw an exception when server doesn't give us list of mechanisms