[Bug 1155] Add two missing exceptions in createSubBuffer