Fixed bug when registered ID would be parsed undefined, added case to check if should be logged