A check was added for plugins not to be loaded when loading vanilla thus the client is always non-null. Plugins loaded with vanilla don't use client.