Fix Memcached test, getMemcached() returns null when called before init()
This lead to method_exists() always returning false.
Merge pull request #4708 from ceeram/3.0-memcached

Fix Memcached test, getMemcached() returns null when called before init