Update core/src/main/java/com/orientechnologies/orient/core/metadata/security/ORole.java

add protection if mode is illegal format
Update server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/command/get/OServerCommandGetConnect.java

Add NPE check
Merge pull request #1354 from henryzhao81/master

Exception when showing studio page