Performance improvement on get() by removing unneeded tests and catching
instead NPE/out of bound exceptions.