Make `loadAllThenCallBack` only call `callbacks.end` if it is a function.

Just to make it a little more failsafe.