bug fix

fixed javascript erorr if #status_bar div is not found in the template