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

Tried to fix #14 by adding a couple of isInEditMode() checks to make sure there are no exceptions thrown by MaterialEditText in Preview mode.