Avoid unnecessary double chunk map lookups.

Several places in vanilla check if a chunk is loaded and if so get the
chunk. This is two effectively duplicate requests for one chunk. To avoid
this we add a new getChunkIfLoaded method and make use of it in high
traffic methods. There are other places that do these pairs of calls as well
but profiling did not show them getting called enough to be worth the diff.