Some small fixes

Change's common.php in the base_path define check to index.php

Adds a check in collaborative/init.js to on data to make sure its not empty as mentioned in issue #209