Additional conditions for setting a default custom sidebar slug

Fixes #57