..F....... [ZBXNEXT-734] fixed undefined indexes and SQL errors in history screens and re-factored code so screen.get call is not in jsrpc.php