Fix for #14: "Rendering problems" in Android Studio Preview mode

Have added a couple of isInEditMode() checks to make sure there are no exceptions thrown by MaterialEditText in Preview mode.