fixed a bad call to $this when it should just be $AppUI;
fixed an issue where the start date was being used twice instead of the calculated end date
catching arrays that are null so we don't get a nasty warning in the logs
removed a typo
filtering out the dynamic tasks to make sure we don't double count hours if the dynamic tasks are nested
made sure we're updating the dynamics