Fix docs building

Fixes an error in building docs if the RTFD theme is not installed