Removed unnecessary NULL checks when freeing form