Update Serialization.java

Added error checking and clear diagram function for when a file is open and moved looping through elements to model view.