Fixed a bug in OmH read.

If a number of elements to skip and/or return was not given, a NullPointerException was being thrown.