Ensure the file is open before trying to seek

If the user tries to seek() before read()ing the input stream, wrappedObject is going to be null, and cause a NullPointerException to be thrown.