JS: improved nashorn fix avoiding catching exception if result is not Map
SQL: fixed sub-query return in case the linked type is LINK
Merge branch 'develop' of https://github.com/orientechnologies/orientdb into develop