pass msg_level and remove duplicated checks
properly catch 404 errors
study id from object
Merge pull request #606 from squirrelo/fix-study-desc-render

Pass msg_level and remove duplicated checks