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

previously, an error stanza from the server will result in uncatchable PHP Fatal Error.