Added protection against database issues where the employee or the customer are null.