Unable to load pre-trained weights on dl4j from keras
#### Issue Description

I am trying to load pretrained wieghts from python on dl4j ComputationGraph org.deeplearning4j.nn.modelimport.keras.KerasModelImport.importKerasModelAndWeights(KerasModelImport.java:193)
here is the error:
HDF5-DIAG: Error detected in HDF5 (1.10.1) thread 0:
#000: H5A.c line 436 in H5Aopen(): unable to load attribute info from object header for attribute: 'weight_names'
major: Attribute
minor: Unable to initialize object
#001: H5Oattribute.c line 528 in H5O_attr_open_by_name(): can't locate attribute: 'weight_names'
major: Attribute
minor: Object not found

#### Version Information

* Deeplearning4j 1.0.0-alpha
* MacOS Sierra
* keras (2.1.4)
* TF(1.3.0)
* cpu

#### Contributing
       // loading the model 
        try{
           model = KerasModelImport.importKerasModelAndWeights(model_json, model_weights);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }

diff --git a/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/utils/KerasModelBuilder.java b/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/utils/KerasModelBuilder.java
index 5fda8bd49a..ae0912b255 100644
--- a/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/utils/KerasModelBuilder.java
+++ b/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/utils/KerasModelBuilder.java
@@ -118,8 +118,13 @@ public class KerasModelBuilder implements Cloneable, Closeable {
         return this;
     }
 
-    public KerasModelBuilder weightsHdf5Filename(String weightsHdf5Filename) {
+    public KerasModelBuilder weightsHdf5Filename(String weightsHdf5Filename)
+            throws InvalidKerasConfigurationException {
         this.weightsArchive = new Hdf5Archive(weightsHdf5Filename);
+        this.weightsRoot = config.getTrainingWeightsRoot();
+        if (!this.weightsArchive.hasAttribute(config.getTrainingModelConfigAttribute()))
+            throw new InvalidKerasConfigurationException(
+                    "Model configuration attribute missing from " + weightsHdf5Filename + " archive.");
         return this;
     }
 
@@ -143,7 +148,8 @@ public class KerasModelBuilder implements Cloneable, Closeable {
         return sequentialModel;
     }
 
-    @Override public void close() {
+    @Override
+    public void close() {
         if (trainingArchive != null && trainingArchive != weightsArchive) {
             trainingArchive.close();
             trainingArchive = null;
['deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/utils/KerasModelBuilder.java']