Fixed issue #24: NullPointerException with loaders and writers