fixed JS error when no sidebar exists
fixed JS error when no sidebar exists

axilleas/gitlabhq,iiet/iiet-git,iiet/iiet-git,jirutka/gitlabhq,mmkassem/gitlabhq,mmkassem/gitlabhq,t-zuehlsdorff/gitlabhq,mmkassem/gitlabhq,t-zuehlsdorff/gitlabhq,axilleas/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,dreampet/gitlab,stoplightio/gitlabhq,jirutka/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,stoplightio/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,t-zuehlsdorff/gitlabhq,dreampet/gitlab,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,iiet/iiet-git,dreampet/gitlab,mmkassem/gitlabhq,axilleas/gitlabhq