Protected against returnValue == null

Also added a parser for element within given range.