Fixed bp-docs.php and query-builder.php

Changed the slug in bp-docs since it lead to unwanted 302's with some themes/plugins
Added the check for a zero post id in query-builder.php