[Fix] JS error when caprica is not shown.