Fixed ArrayIndexOutOfBoundsException in getOreName

Added sanity check to prevent ArrayIndexOutOfBoundsException in getOreName for negative ids.