Prevent current_schema from being null. Fail with clean exception instead of NPE.