Check if application message is nil before adding one.