Issue #2221469 by Jojo-M: Fix issue with Elastica\Client not always loading when using Libraries API