Return null for failed Gallery initializations + JSHint compatibility updates.